﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CloudPms.Common.Utils
{
    /// <summary>
    /// 早餐类型
    /// </summary>
    public class BreakfastType
    {
        public enum TypeCode
        {
            /// <summary>
            /// 送早
            /// </summary>
            Give=0,
            /// <summary>
            /// 积分兑早
            /// </summary>
            PointExchange=5,
            /// <summary>
            /// 优惠券兑早
            /// </summary>
            CouponExchange=6,
            /// <summary>
            /// 售卖的早餐
            /// </summary>
            Sale=9,
        }
        
        /// <summary>
        /// 早餐类别表
        /// </summary>
        public static IDictionary<int,string> TypeDict
        {
            get
            {
                IDictionary<int, string> dict = new Dictionary<int, string>();
                dict.Add(0, "送早");
                dict.Add(5, "积分兑早");
                dict.Add(6, "优惠券兑早");
                dict.Add(9, "售早");
                return dict;
            }
        }

        /// <summary>
        /// 获取早餐类别名称
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        public static string GetCodeName(int key)
        {
            if (TypeDict.ContainsKey(key))
            {
                return TypeDict[key];
            }
            return string.Empty;
        }


    }

    
}
